package com.caiheng.api.dao.wxuser;

import com.caiheng.api.dao.BaseDao;
import com.caiheng.api.entity.wxuser.UserIntegralRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface UserIntegralRecordMapper extends BaseDao<UserIntegralRecord> {

    List<UserIntegralRecord> selectByUserId(@Param("user_id") Integer user_id, @Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    int getSignTotalIntegral(@Param("user_id") Integer user_id, @Param("expire_time") Date expire_time, @Param("get_type") Integer get_type);

    List<UserIntegralRecord> selectAllCanUseByUserId(@Param("user_id") Integer user_id, @Param("expire_time") Date expire_time);

}
